# -*- coding:utf-8 -*-


import xadmin
from hardware.models import Hardware

   
class HardwareAdmin(object):
    list_display = ('title', 'display', 'guest', 'group', 'category', 'chip', 'format', 'version', 'description', 'file', 'date')
    search_fields = ['title', 'category', 'format']
    list_filter = ['title', 'category', 'format']
    ordering = ('-display', '-guest', 'category', 'title')   
              
xadmin.site.register(Hardware, HardwareAdmin)





